#ifndef PERIODIC_H_
#define PERIODIC_H_

#include "arduino/WProgram.h"
#include "Protocol.h"

//bool AnalogPinsToStream[6];
//bool DigitalPinsToStream[14];

void Handler();
void SetEStopped(bool eStopped);
void StartPeriodic();
void StopPeriodic();

void WatchdogReset();

bool GetRequestToStream();
void Stream();
void EnableAnalogStream(uint8_t pin, InputStreamMode mode);
void EnableDigitalStream(uint8_t pin, InputStreamMode mode);
void DisableAnalogStream(uint8_t pin);
void DisableDigitalStream(uint8_t pin);

#endif
